package com.zhangtai.modules.service.employee;


import com.zhangtai.modules.entity.employee.ReportBackInfoEntity;
import com.zhangtai.utils.PageResult;
import com.zhangtai.utils.R;
import io.swagger.annotations.ApiOperation;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;



/**
 *
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-12-11 16:09:07
 */

public interface ReportBackInfoService {

    @ApiOperation(value = "分页查询")
    PageResult<ReportBackInfoEntity> queryPageHr(
            @RequestParam(value = "orgName", required = false) String orgName,
            @RequestParam(value = "unitName", required = false) String unitName,
            @RequestParam(value = "jobName", required = false) String jobName,
            @RequestParam(value = "userName", required = false) String userName,
            @RequestParam(value = "createtime", required = false) String createtime,
                         @RequestParam(value = "orgIds", required = false) List<Long> orgIds,
                         @RequestParam(value = "beginGmtCancel", required = false) String beginGmtCancel,
                         @RequestParam(value = "endGmtCancel", required = false) String endGmtCancel,
                         @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
                         @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize);

    @ApiOperation(value = "分页查询")
    PageResult queryPage(@RequestParam(value = "createtime", required = false) String createtime,
                         @RequestParam(value = "userName", required = false) String userName,
                         @RequestParam(value = "code", required = false) String code,
                         @RequestParam(value = "beginGmtCancel", required = false) String beginGmtCancel,
                         @RequestParam(value = "endGmtCancel", required = false) String endGmtCancel,
                         @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
                         @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize);

    @ApiOperation(value = "根据id查找")
    ReportBackInfoEntity getByIdE(@RequestParam("id") Long id);

    @ApiOperation(value = "保存")
    R saveE(@RequestBody ReportBackInfoEntity entity);

    @ApiOperation(value = "修改")
    R updateByIdE(@RequestBody ReportBackInfoEntity entity);

    @ApiOperation(value = "根据ID删除")
    R removeOneById(@RequestParam("id") Long id);

    @ApiOperation(value = "根据ID集合删除")
    R removeByIdsE(@RequestBody List<Long> ids);
}

